/*
 * Copyright (c) ShaoxiongDu <Shaoxiong.dev@aliyun.com> 2021 all Rights Reserved
 */

package zh.codegym.task.task08.task0827;

import java.util.Calendar;
import java.util.Date;

/* 
处理日期
*/

public class Solution {
    public static void main(String[] args) {
        System.out.println(isDateOdd("MAY 1 2013"));
    }

    public static boolean isDateOdd(String date) {
        Date d = new Date(date);
        Calendar ca = Calendar.getInstance();
        ca.setTime(d);
        int day = ca.get(Calendar.DAY_OF_YEAR);
        return day % 2 != 0;
    }
}
